package com.demo.exception;

/**
 * 自定义异常基类
 */
public class BaseException extends RuntimeException {

    public BaseException(Integer errorCode, String msg) {
        super(msg);
        this.errorCode = errorCode;
    }
    //自定义错误码
    private Integer errorCode;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

}
